﻿using MediatR;
using THE_WIND_RISES.Common.Domans.Produce.Craft;

namespace Production_Set.API.Application.Commands.Technology
{
    public class ProcessRouteCreateCommand:IRequest<THE_WIND_RISES.Common.Dtos.Result>
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int ProcessRouteId { get; set; }

        /// <summary>
        /// 工艺编码
        /// </summary>
        public string ProcessRouteNo { get; set; }

        /// <summary>
        /// 工艺名称
        /// </summary>
        public string ProcessRouteName { get; set; }

        /// <summary>
        /// 工艺版本
        /// </summary>
        public string ProcessVersion { get; set; }

        /// <summary>
        /// 工艺描述
        /// </summary>
        public string ProcessDescription { get; set; }

        /// <summary>
        /// 物流
        /// </summary>
        public int InventoryInfoId { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public bool ProcessRouteStatus { get; set; }

        /// <summary>
        /// 审批
        /// </summary>
        public int ProcessRouteApproval { get; set; }
        /// <summary>
        /// 操作人
        /// </summary>
        public string Handle { get; set; }
        /// <summary>
        /// 操作内容
        /// </summary>
        public string HandleContext { get; set; }
        /// <summary>
        /// 操作时间
        /// </summary>
        public DateTime HandleTime { get; set; }=DateTime.Now;
        /// <summary>
        /// pid=1:创建   pid=2:审批   pid=3:删除   pid=4:修改  
        /// </summary>
        public int Pid { get; set; }

        /// <summary>
        /// 删除
        /// </summary>
        public bool IsDelete { get; set; }

        /// <summary>
        /// 工序行
        /// </summary>
        public List<OperationLine> OperationLineList {  get; set; }
    }
}
